﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace CTM.Web.Models.Input
{
    public class Tag
    {
        #region Properties

        [Key]
        public int Id { get; set; }

        [Required]
        [StringLength(100)]
        public string Name { get; set; }

        //public bool IsDeleted { get; set; }

        //public DateTime CreatedOn { get; set; }

        //[StringLength(128)]
        //public string CreatedBy { get; set; }

        //public DateTime? ModifiedOn { get; set; }

        //[StringLength(128)]
        //public string ModifiedBy { get; set; }

        #endregion

        #region Relationship
        public virtual ICollection<Post> Posts { get; set; }
        #endregion

        public Tag()
        {
            //IsDeleted = false;
            //CreatedOn = DateTime.UtcNow;
            //ModifiedOn = DateTime.UtcNow;
            Posts = new HashSet<Post>();
        }
    }
}